package com.stt.base.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 任务类
 */
public class Task {

    public String title; // 任务编号
    public int priority; // 优先级
    public String tag; // 标签,可选
    public List<String> subtasks; // 子任务列表

    // 构造方法参数爆炸！
    public Task(String title, int priority, String tag, List<String> subtasks) {
        this.title = title;
        this.priority = priority;
        this.tag = tag;
        this.subtasks = subtasks;
    }

    /**
     * 对应任务标签不填的构造方法
     * @param title
     * @param priority
     * @param subtasks
     */
    public Task(String title, int priority, List<String> subtasks) {
        this.title = title;
        this.priority = priority;
        this.subtasks = subtasks;
    }

    /**
     * 对应任务标签，子任务列表不填的构造方法
     * @param title
     * @param priority
     */
    public Task(String title, int priority) {
        this.title = title;
        this.priority = priority;
        this.subtasks = new ArrayList<String>();
    }

}
